QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#78867#2933. Sequinary NumeralsZhaoZiLongCompile Error//C++17736b2023-02-20 02:43:462023-02-20 02:43:48

Details

answer.code: In function ‘int main()’:
answer.code:3:5: error: ‘string’ was not declared in this scope
    3 |     string input;
      |     ^~~~~~
answer.code:4:5: error: ‘cin’ was not declared in this scope
    4 |     cin>>input;
      |     ^~~
answer.code:4:10: error: ‘input’ was not declared in this scope; did you mean ‘int’?
    4 |     cin>>input;
      |          ^~~~~
      |          int
answer.code:11:30: error: ‘pow’ was not declared in this scope
   11 |         auto x = (long long) pow(3, input.size() - 1 - i);
      |                              ^~~
answer.code:15:28: error: ‘pow’ was not declared in this scope
   15 |         down = (long long) pow(2,input.size()-1);
      |                            ^~~
answer.code:22:9: error: ‘cout’ was not declared in this scope
   22 |         cout<<left;
      |         ^~~~
answer.code:24:9: error: ‘Fraction’ was not declared in this scope
   24 |         Fraction f(res_up, res_down);
      |         ^~~~~~~~
answer.code:25:9: error: ‘f’ was not declared in this scope
   25 |         f.reduce();
      |         ^
answer.code:26:9: error: ‘cout’ was not declared in this scope
   26 |         cout<<left<<" "<<f.up<<"/"<<f.down;
      |         ^~~~