UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#213194#2348. LifebwahojiCompile Error//C++11712b2024-11-09 22:53:302024-11-09 23:30:32

answer

#include <bits/stdc++.h> 

using namespace std; 

int main() { 

  ios::sync_with_stdio(0); 

  cin.tie(0); 

  int l, q; 

  cin >> l >> q; 

  while (q--) { 

    int x; 

    cin >> x; 

    for (int i = 0; i <= l; i++) { 

      for (int j = 0; j <= l; j++) { 

        if (abs(x - i * i * i - j * j * j) <= l * l * l) { 

          int ii = cbrt(x - i * i * i - j * j * j); 

          if (ii * ii * ii == (x - i * i * i - j * j * j)) { 

            cout << i << " " << j << " " << ii << "\n"; 

            goto fin; 

          } 

        } 

      } 

    } 

    fin:; 

  } 


  return 0; 

} 

详细

answer.code:7:1: error: stray '\302' in program
   ios::sync_with_stdio(0); \x0d
 ^
answer.code:7:1: error: stray '\240' in program
answer.code:9:1: error: stray '\302' in program
   cin.tie(0); \x0d
 ^
answer.code:9:1: error: stray '\240' in program
answer.code:11:1: error: stray '\302' in program
   int l, q; \x0d
 ^
answer.code:11:1: error: stray '\240' in program
answer.code:13:1: error: stray '\302' in program
   cin >> l >> q; \x0d
 ^
answer.code:13:1: error: stray '\240' in program
answer.code:15...